Optimize allocations in the registry index
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jun 2017 13:57:43 +0000 (06:57 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 5 Jun 2017 14:36:44 +0000 (07:36 -0700)
commitd303306d375241d2eb424c8a00663497e539fbc3
tree8bb335d8c170de8143b0046095c3c545b9c7aa62
parent842c182e67a3b380d0fd70b7d41d3755d6643977
Optimize allocations in the registry index

Avoid some unnecessary clones, `to_vec`, etc. Not super optimizal but improves
the profile here regardless.
src/cargo/sources/registry/index.rs
src/cargo/sources/registry/local.rs
src/cargo/sources/registry/mod.rs
src/cargo/sources/registry/remote.rs